package homework;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FOSDemo {
    public static void main(String[] args) throws IOException {
        File file = new File("batman.dat");
        FileOutputStream fos = new FileOutputStream(file);
        int d = 11;
        fos.write(d);
        System.out.println(d);

        d = -1;
        fos.write(d);
        System.out.println(d);
        fos.close();
    }
}
